var testRequirementCheckLogGrid = Ext.create('Ext.grid.Panel', {
    store: testRequirementCheckLogStore,
    columns: [new Ext.grid.RowNumberer(),//显示行号
        {
            text: '状态',
            width: 100,
            renderer: function (v, record) {
                if (record.record.data.isFinish == 1) {
                    if (record.record.data.isPass == 1)
                        return '审核通过';
                    else
                        return '审核不通过';
                } else
                    return '审核中';
            },
        }, {
            text: '审核人',
            dataIndex: 'checkMan',
            flex: 1
        }, {
            text: '审核日期',
            dataIndex: 'checkDate',
            flex: 0.5,
            renderer: function (value) {
                return value.replace('T', '  ');
            }
        }, {
            text: '查看批注',
            align: 'center',
            sortable: false,
            xtype: 'actioncolumn',
            width: 100,
            items: [{
                icon: 'static/images/icons/fam/look.ico',
                tooltip: '查看批注',
                handler: function (grid, rowIndex, colIndex) {
                    var id = testRequirementCheckLogStore.getAt(rowIndex).data.id;
                    Ext.Ajax.request({//然后去后台请求该审核记录的批注内容
                        url: zuulUrl + '/' + testServiceName + '/testRequirementCheck/common/annotate/' + id,
                        async: true,   //ASYNC 是否异步( TRUE 异步 , FALSE 同步)
                        success: function (response, opts) {
                            var obj = Ext.decode(response.responseText);
                            if (obj.code == 200) {
                                testRequirementCheckLogWin.removeAll(false);
                                testRequirementCheckLogWin.setTitle('查看审核批注');
                                testRequirementCheckAnnotatePanel.setHtml('<p><b>' + obj.data + '</b></p>');
                                testRequirementCheckLogWin.add(testRequirementCheckAnnotatePanel);
                            } else
                                Ext.Msg.alert('失败', '该操作暂时不可用！');
                        },
                        failure: function (response, opts) {
                            Ext.Msg.alert('失败', '该操作暂时不可用！');
                        }
                    });
                }
            }]
        }]
});